import request from '@/utils/request'

// 查询陀螺仪数据列表
export function listGyroscopeData(query) {
  return request({
    url: '/baseinfo/gyroscopeData/list',
    method: 'get',
    params: query
  })
}

// 查询陀螺仪数据详细
export function getGyroscopeData(id) {
  return request({
    url: '/baseinfo/gyroscopeData/' + id,
    method: 'get'
  })
}

// 查询陀螺仪数据详细
export function handleGetGyroscopeData(code) {
  return request({
    url: '/baseinfo/gyroscopeData/getGyroscopeData/' + code,
    method: 'get'
  })
}


// 新增陀螺仪数据
export function addGyroscopeData(data) {
  return request({
    url: '/baseinfo/gyroscopeData',
    method: 'post',
    data: data
  })
}

// 修改陀螺仪数据
export function updateGyroscopeData(data) {
  return request({
    url: '/baseinfo/gyroscopeData',
    method: 'put',
    data: data
  })
}

// 删除陀螺仪数据
export function delGyroscopeData(id) {
  return request({
    url: '/baseinfo/gyroscopeData/' + id,
    method: 'delete'
  })
}
